package com.spring.nio.common;

/**
 * @author: YSFY
 * @date: 2021-04-18 23:25
 * @pacage_name: com.spring.nio.common
 * @class_name: ResponseEnum
 * @description: Response 类型
 */
public enum ResponseEnum {
    SUCCESS("200", "响应成功"),
    FAIL("201", "响应失败");

    private String code;
    private String description;
    ResponseEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
